package com.rory.gooday.index;

import com.jfinal.core.Controller;
import com.jfinal.core.Path;
import com.jfinal.upload.UploadFile;

@Path(value = "/file")
public class FileController extends Controller {

    public void index() {
        UploadFile uploadFile = getFile() ;
        System.out.println(uploadFile.getFileName());
        renderText("/upload/"+uploadFile.getFileName());
    }
}
